package com.woniuxy05;

/**
 * @author 作者
 * @create 2025-07-24 17:28
 */
public class Test01 {
    public static void main(String[] args) {
        
        Computer computer = new Computer();
        Usb usb = new UsbFan();
        computer.setUsb(usb);
        computer.usbWork();

        usb=new UsbMouse();
        computer.setUsb(usb);
        computer.usbWork();

        computer.setUsb(new KeyBoard());
        computer.usbWork();

    }
}
